package com.yuntianshi.service;

import com.yuntianshi.common.PageResult;
import com.yuntianshi.common.Result;
import com.yuntianshi.pojo.Order;

import java.util.List;
import java.util.Map;

/**
 * 服务预约服务接口
 */
public interface OrderService {
    //服务预约
    public Result order(Map map) throws Exception;
    //根据id查询预约信息，包括体检人信息、套餐信息
    public Order findById(Integer id) throws Exception;

    public PageResult pageQuery(Integer currentPage, Integer pageSize, String queryString) throws Exception;

    public Result add(Map map, Integer[] setmealIds) throws Exception;

    public Result statusUpdate(Integer id);

    public void delete(Integer id);

    public Result updateFile(Order order);

    public List<Order> findByPhoneNumber(String telephone);
}